    <%-- 
    Document   : viewmovies
    Created on : Jul 21, 2012, 9:49:18 PM
    Author     : Atienza-Home
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>View Movies | Moviestore.com</title>
        
        <link href="../adminpanel/header.css" rel="stylesheet" type="text/css"></link>
        <script type="text/javascript" src="ajaxmain_admin.js"></script>
        <script type="text/javascript" src="jquery.js"></script>
        
        <script type="text/javascript">
            
            var name;
            var desc;
            
            function changepic(){
                var picpath = document.getElementById('moviepicbrowse').value.substr(12);
                
                document.getElementById("moviepic").innerHTML = "<img id='specificmoviepic' src='../"+picpath+"' name='"+picpath+"' style='border:2px solid black;'/><br><input id='moviepicbrowse'  type='file' onchange='javascript:changepic();'>";


            }    
            
            function changeName(){
                name = document.getElementById("spanmoviename").className;
                
                document.getElementById("moviename").innerHTML = "<input id='editmoviename' type='text'/ value='"+name+"' /> <font>[<a href='javascript:unchangeName()'>Unedit</a>]</font> ";
                
            }
            function unchangeName(){
                
                document.getElementById("moviename").innerHTML = "<div id='spanmoviename' class='"+name+"' ><font color='white' style=' font-size: 25px;font-weight: bold;'>"+name+"<font style='font-weight:normal;font-size:15px;'>[<a href='javascript:changeName()'>Edit</a>]</font> </font></div>";
                
            }
            
            function changeDescription(){
                if(!desc)
                desc = document.getElementById("spanmoviedesc").className;
                
                document.getElementById("moviedescription").innerHTML = "<textarea cols='115' rows='15' id='editmoviedescription'>"+desc+"</textarea> <font>[<a href='javascript:unchangeDescription()'>Unedit</a>]</font> ";
                
            }
            function unchangeDescription(){
               
                
                document.getElementById("moviedescription").innerHTML = "<div id='spanmoviedesc' class="+desc+" ><font color='white'>&nbsp;&nbsp;"+desc+"[<a href='javascript:changeDescription()'> Edit</a>]</font><br></div>";
                 
            }
            function addQuantity(id){
                
                document.getElementById("addstock"+id).style.display = "block";
            }
            
            
            
            
        </script>
        
        
    </head>
    <body onload="retrieveMovies()">
        <div id="header"><font color="#006666" style=" font-size: 30px; font-weight: bold;">Movies | Moviestore.com</font></div>
        
        <div id="realbody">
            
            <div style=" padding-left: 0px; font-weight: bold;"><font color="black">Select movies:</font></div>
            
            <div id="movietraverse">
                <div id="moviepaneloader"></div>
                
            </div>
                
            
            
            
            
        </div>
        
        
    </body>
</html>
